package it.sources.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article {
    private Long id;
    private String articlePic;
    private String articleName;
    private String articleTag;
    private Long articleType;
    private Integer articleState;
    private Integer topState;
    private Long publishId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    private Integer articleReadCount=0;
    private Integer articleStarNum=0;
    private Integer articleCommentNum=0;
    private String articleRemark;
    private String articleContent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Article> children=new ArrayList<>();
    private String parentTypeName;
    private String publishName;


}
